//package cn.doitedu;
//
//import io.airlift.slice.Slice;
//import io.airlift.slice.Slices;
//import io.prestosql.spi.function.Description;
//import io.prestosql.spi.function.ScalarFunction;
//import io.prestosql.spi.function.SqlType;
//import io.prestosql.spi.type.StandardTypes;
//
///***
// * @author hunter.d
// * @qq 657270652
// * @wx haitao-duan
// * @date 2021/2/1
// * presto udf 示例
// **/
//public class ExampleStringFunction
//{
//    @ScalarFunction("lowercaser")
//    @Description("Converts the string to alternating case")
//    @SqlType(StandardTypes.VARCHAR)
//    public static Slice lowercaser(@SqlType(StandardTypes.VARCHAR) Slice slice)
//    {
//        String argument = slice.toStringUtf8();
//        return Slices.utf8Slice(argument.toLowerCase());
//    }
//}
